package com.lx.patterns.decorator;

/**
 * @ClassName Client
 * @Description: //todo
 * @Author: 落雪
 * @CreateDate: 2025/1/21 21:24
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/1/21 21:24
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {

        //单点炒饭
        FastFood food = new FriedRice();
        System.out.println(food.getDesc()+"   "+food.cost()+"元");

        System.out.println("===========");
        FastFood food1 = new FriedRice();
        food = new Egg(food1);
        System.out.println(food.getDesc()+"   "+food.cost()+"元");
        System.out.println("===========");
        FastFood food2 = new FriedRice();
        food = new Bacon(food2);
        System.out.println(food.getDesc()+"   "+food.cost()+"元");


    }
}
